﻿using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Windows;
using System.Windows.Data;
using System.ComponentModel;
namespace WPFExcelReport
{
    public partial class K9324
    {
        public K9324()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            InitializeComponent();
            SDSA = "9324";
        }
        public override void LOADALL()
        {
            base.LOADALL();
            foreach (DataRow row in TBMain.Rows)
            {
                row["SDES"] = Helpers.Helper.Convert8859P1ToGB2312(row["SDES"].ToString().Trim());
                row["DES"] = Helpers.Helper.Convert8859P1ToGB2312(row["DES"].ToString().Trim());
            }
            if (SDSA.Length == 0) return;
            if (TBMain.Rows.Count > 0)
                return;
            if (DBSDDAT.ContainsKey(SDSA))
            {
                DBSDDAT.Remove(SDSA);
            }
            dwData = TBMain.NewRow();
            TMV.SetUpNewRow(ref dwData, SDSA);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("WV");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("前处理准备");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("前处理准备");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000"); 
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("WN");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("后处理准备");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("后处理准备");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");

            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("FV");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("染色前处理");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("染色前处理");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000"); 
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("FN");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("染色后处理");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("染色后处理");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("DV");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("印花前处理");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("印花前处理");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("DN");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("印花后处理");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("印花后处理");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("VV");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("整理前处理");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("整理前处理");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("VN");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("整理后处理");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("整理后处理");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("MV");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("机械前处理");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("机械前处理");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("MN");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("机械后处理");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("机械后处理");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("CV");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("化学前处理");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("化学前处理");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("CN");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("化学后处理");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("化学后处理");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("BV");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("涂层前处理");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("涂层前处理");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("BN");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("涂层后处理");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("涂层后处理");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("SV");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("验布前处理");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("验布前处理");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("SV");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("验布后处理");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("验布后处理");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("T1");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("处理1");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("处理1");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("T2");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("处理2");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("处理2");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("FP");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("纤维准备");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("纤维准备");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("SP");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("纺纱");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("纺纱");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("PR");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("生产");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("生产");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("TY");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("类型");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("类型");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("TX");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("压花");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("压花");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            LOADALL();
        }
    }
}
